package demo;


class Dog extends Aminal{
    Dog(String name, int age) {
        super(name, age);
    }
}


public class Aminal {
    public String name;
    public int age;

    public void eat(){
        System.out.println(this.name + " 正在吃饭...");
    }

    Aminal(String name,int age){
        this.name = name;
        this.age = age;
    }
}
